//
//  BWFDiscorverViewController.swift
//  网易新闻项目
//
//  Created by 薄文飞 on 16/3/2.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class BWFDiscorverViewController: BWFVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !userLogon {
            
            visitorView.setPage("visitordiscover_image_message", textLabel: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        setNavigationItemTitleView()
    }
    
    func setNavigationItemTitleView() {
    
        let titelView = BWFDiscorverItemTitelView(frame: CGRect(x: 10, y: 0, width: UIScreen.mainScreen().bounds.size.width - 20, height: 35))
        
//        titelView.frame = CGRect(x: 5, y: 10, width: UIScreen.mainScreen().bounds.size.width - 10, height: 30)

        self.navigationItem.titleView = titelView
    }

}
